<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-group" class="form-control selectpicker" name="group[]" disabled>
                {foreach name="groupdata" item="vo"}
                <option value="{$key}" {in name="key" value="$groupids" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>
            <!-- {:build_select('', $groupdata, $groupids, ['class'=>'form-control
            selectpicker','data-rule'=>'required','disabled'=>true])} -->
        </div>
    </div>
    {foreach $groupids as $key => $v}
    <input type="hidden" name="group[]" value="{$v}">
    {/foreach}
    <div class="form-group" id="province" >
        <label for="username" class="control-label col-xs-12 col-sm-2">{:__('省')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[province]', $province,$row.province, ['class'=>'form-control
            selectpicker'])}
            
            <!-- <input id="province" data-rule="required"  data-source="area/index" data-params='{"custom[pid]":0}' class="form-control selectpage" name="row[province]" type="text" value="{$row.province|htmlentities}"> -->
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="username" name="row[username]"
                value="{$row.username|htmlentities}" data-rule="required;username" />
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="email" class="form-control" id="email" name="row[email]" value="{$row.email|htmlentities}"
                data-rule="required;email" />
        </div>
    </div>
    <div class="form-group">
        <label for="mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="mobile" name="row[mobile]"
                value="{$row.mobile|default=''|htmlentities}" data-rule="mobile" />
        </div>
    </div>
    <div class="form-group">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" autocomplete="off"
                value="{$row.nickname|htmlentities}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" class="form-control" id="password" name="row[password]" autocomplete="new-password"
                value="" data-rule="password" />
        </div>
    </div>


    <!-- {if $auth->isSuperAdmin()}
        {if $groupids[0]=='10'}
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('提现方式')}:</label>
                <div class="col-xs-12 col-sm-8">
                    {:build_select('row[withdraw]', ['1'=>'线下提现','2'=>'用友提现'], $row['withdraw'], ['class'=>'form-control
                    selectpicker','data-rule'=>'required'])}
                </div>
            </div>
        {/if} -->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('账号有效期')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expiretime" min="0" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss"
                name="row[expiretime]" type="text" value="{:$row.expiretime?datetime($row.expiretime):''}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>